import api from './api';

/**
 * 基本信息
 */
export function userGetUserInfo(data) {
  return api.get('/member/user/get-info', data, { login: true });
}

/**
 * 获取菜单
 */
export function mineService(data) {
  return api.get('/service/list', data, { login: true });
}

/**
 * 获取内容
 */
export function mineServiceContent(data) {
  return api.get('/service/content', data, { login: true });
}

/**
 * save
 */
export function userEdit(data) {
  return api.post('/member/user/update-nickname', data, { login: true });
}

/**
 * balanceGetBillList
 */
export function balanceGetBillList(data) {
  return api.get('/member/user/getBill', data, { login: true });
}

/**
 * 充值列表
 */
export function balanceGetMoneyList(data) {
  return api.get('/recharge/getMoneyList', data, { login: true });
}

/**
 * 充值
 */
export function balanceRecharge(data) {
  return api.post('/member/user/recharge', data, { login: true });
}

/**
 * getCardList
 */
export function getCardList(data) {
  return api.get('/vip/getList', data, { login: true });
}

/**
 * getCardDetail
 */
export function getCardDetail(data) {
  return api.get('/vip/getDetail', data, { login: true });
}

/**
 * 充值
 */
export function cardBuy(data) {
  return api.post('/member/user/buyCard', data, { login: true });
}

// 获取语言列表
export function getLanguageList() {
  return api.get('system/language/page', {});
}
